package com.weds.data_sync.pojo.dto;

import com.alibaba.fastjson2.annotation.JSONField;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * @Description 分页查询
 * @Author lihw
 * @Date 2024/1/5 9:00
 */
@Data
public class PageDto {

    @NotNull(message = "查询页数不能为空")
    @JSONField(defaultValue = "1")
    private Integer page;

    @NotNull(message = "每页条数不能为空")
    @JSONField(defaultValue = "20")
    private Integer size;
}
